package cn.gok.homework;

public class PersonTools {
    public static boolean marryWith(Person p1,Person p2){
        if (p1.isMarried()&& p2.isMarried()){
            return false;
        }else {
            p1.setMarried(true);
            p2.setMarried(true);
        }
        return p1.isMarried()&& p2.isMarried();
    }
}